package com.yty.system.controller;


import com.alibaba.fastjson.JSONObject;
import com.yty.system.feign.OrderFeignInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yegang
 * @since 2022-06-21
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderFeignInterface orderFeignInterface;

    @GetMapping(value = "/queryByOrderId")
    public String queryByOrderId(@RequestParam String orderId){
        String s = orderFeignInterface.queryByOrderId(orderId);
        return s;
    }

    @PostMapping("list")
    public Object list(@RequestBody JSONObject paramJson) {
        return orderFeignInterface.list(paramJson);
    }
}
